/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package ebookmgr;

import java.awt.FlowLayout;
import java.awt.Frame;
import javax.swing.JDialog;
import javax.swing.JLabel;

/**
 *
 * @author mazhao
 */
public class AboutDialog extends JDialog {

    public AboutDialog(Frame owner, boolean modal) {
        super(owner, modal);
        this.setSize(300, 200);
        this.setLocation( EBookMgrUtil.getProperPosition(owner, this) );
        this.setLayout(new FlowLayout());
        StringBuilder msg = new StringBuilder();
        msg.append("<html><body><p>");
        msg.append("EBookMgr TPV-01 ");
        msg.append("<br/>http://blog.csdn.net/struts2");
        msg.append("<br/>http://code.google.com/p/ebookmgr");
        msg.append("<br/>ma.zhao@dl.cn");
        msg.append("<br/>Apache License 2.0");
        msg.append("</p></body></html>");
        JLabel label1 = new JLabel(msg.toString());

        add(label1);

    }
}
